<template>
      <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column
        prop="value"
        label="内容"
        width="600">
      </el-table-column>
      <el-table-column
        prop="msg"
        label="描述"
        width="600">
      </el-table-column>
      <el-table-column
      prop=""
      label="操作">
      <el-button type="primary" icon="el-icon-edit">修改</el-button> 
      </el-table-column>
    </el-table>
</template>
<script>
 export default({
  data(){
    
        return {
        ruleForm2: {
        id: "",
        pic: "",
        yzm:"",
        token:''
      },
      tableData:{}
        }  
    },
    methods:{
       getlist(){
         console.log(localStorage.getItem("mytoken"))
         this.$axios({
           methods:"get",
           url:'/index.php/admin/Index/informationList',
           params:{
             token:localStorage.getItem("mytoken")
           },
         }).then(res=>{
           this.tableData = res.data.data.cateList
           console.log(res)
           console.log(localStorage.getItem("mytoken"))
         }).catch(err => { //请求失败就会捕获报错信息
                 //err.response可拿到服务器返回的报错数据   
                console.log(err)    
           })
       }
    },
     mounted(){
       this.getlist()
     } 
})




</script>
<style>

</style>